// Domien Nowicki
#include "QtRepairpointSprite.h"
#include "QtSequentialAnimationEffect.h"
#include "QtScaleToEffect.h"



QtRepairpointSprite::QtRepairpointSprite(QtSprite *parent): QtPixmapSprite(parent), duration(1000)
{
	SetDepth(1);

	SetResource("foreground", "repairpoint");
}

QtRepairpointSprite::~QtRepairpointSprite()
{
}

void QtRepairpointSprite::Reached()
{
	QtScaleToEffect effect;

	effect.SetDuration(duration);
	effect.SetTarget(this);
	effect.SetEndScale(Width()+20, Height()+20);

	AddEffect(&effect);

	effect.SetEndScale(Width(), Height());

	AddEffect(&effect);

	Start();
}









